﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zian.WinForm.Framework.Mappers;
using Zian.WinForm.Framework.Vos;

namespace ZhiQianWinform.Vos
{
    public class ApiVo : BaseVo
    {
        public object PrimKey => Id;

        public string LabelName => Name;

        [PropertyMapper(Name = "主键", IsPk = true, IsPkVisiable = true, EditType = Sunny.UI.UITextBox.UIEditType.Integer)]
        public int? Id { set; get; }
        [PropertyMapper(Name = "姓名")]
        public string Name { set; get; }
        [PropertyMapper(Name = "年龄", EditType = Sunny.UI.UITextBox.UIEditType.Integer)]
        public int? Age { set; get; }

        public ApiVo() { }

        public ApiVo(int id, string name, int age)
        {
            Id = id;
            Name = name;
            Age = age;
        }
    }
}
